import request from "@/utils/http";

// 生成订单(即填写订单或结算页)
export const getCheckoutInfoAPI = () => {
  return request({
    url: "/member/order/pre",
    method: "GET",
  });
};

// 提交订单(准备开始支付)
export const createOrderAPI = (data) => {
  return request({
    url: "/member/order",
    method: "POST",
    data,
  });
};
